<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>给组件绑定原生事件</title>
  <script src="./vue.js"></script>
</head>

<body>
  <div id="root">
    <child></child>
    <child></child>
  </div>
    
  <script>
    Vue.component("child", {
      template: `<div>child</div>`
    })

    var vm = new Vue({
      el: "#root",
    })
  </script>
</body>

</html>